package com.sxt;

import java.awt.*;

public class MyButton extends GameObject{

    public MyButton() {
        super();
    }

    public MyButton(String image, GameWin frame) {
        super(image, frame);
    }

    public MyButton(String image, int x, int y, int speedY, GameWin frame) {
        super(image, x, y, speedY, frame);
    }

    public MyButton(String image, int x, int y, int width, int height, int speedY, GameWin frame) {
        super(image, x, y, width, height, speedY, frame);
    }

    @Override
    public void paintSelf(Graphics s) {
        s.drawImage(image,x,y,null);
    }

    @Override
    public Rectangle getRec() {
        return new Rectangle(x, y, GameWin.OPTION_LOGO_SIDE_LENGTH, GameWin.OPTION_LOGO_SIDE_LENGTH);
    }

    @Override
    public void DeBug() {
        System.out.println("ButtonObj Class");
    }
}
